package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MesRework;
import com.woniuxy.mesboot.mapper.MesReworkMapper;
import com.woniuxy.mesboot.service.MesReworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MesReworkServiceImpl implements MesReworkService {
    @Autowired
    private MesReworkMapper reworkMapper;
    @Override
    public List<MesRework> selectAll() {
        return reworkMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return reworkMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesRework record) {
        return reworkMapper.insert(record);
    }

    @Override
    public int insertSelective(MesRework record) {
        return reworkMapper.insertSelective(record);
    }

    @Override
    public MesRework selectByPrimaryKey(Long id) {
        return reworkMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesRework record) {
        return reworkMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesRework record) {
        return reworkMapper.updateByPrimaryKey(record);
    }
}
